/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ro.futurefeed.api;

import javax.ws.rs.*;
import javax.ws.rs.core.Response;

/**
 *
 * @author Georgian
 */
@Path("/feeds/")
public interface FeedsService {
    
    @GET
    @Produces({"application/json","application/xml"})
    FeedContainerTO getFeeds(@QueryParam("token") String accessToken);
    
    @GET
    @Path("/{feedId}/")
    @Produces({"application/json","application/xml"})
    FeedTO loadDetail(@QueryParam("token") String accessToken, @PathParam("feedId") String id);
    
    @POST
    @Produces({"application/json","application/xml"})
    Response createFeed(@QueryParam("token") String accessToken, FeedTO feedTO);
    
    @PUT
    @Path("/{feedId}/")
    @Produces({"application/json","application/xml"})
    Response updateFeed(@QueryParam("token") String accessToken, @PathParam("feedId") String feedId, FeedTO feedTO);
    
    @DELETE
    @Path("/{feedId}/")
    @Produces({"application/json","application/xml"})
    Response deleteFeed(@QueryParam("token") String accessToken, @PathParam("feedId") String feedId);
    
}
